<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="0" />
<title>临时订单</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="laydate/laydate5.js"></script>
<script type="text/javascript" src="js/application/temporaryorder.js?6"></script>

</head>
<body>
	<div class="incList">
		<div id=""></div>
		<div class="place" name="dataList">
			<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">财务管理</a></li>
				<li><a href="#">订单管理</a></li>
				<li><a href="#">临时订单</a></li>
			</ul>
		</div>
		<div class="formbody" name="dataList">
			<div class="tools">
				<ul class="seachform">
					<li><label>开始时间</label> <input type="text"
						name="searchTimeStart" class="tlinput" id="searchTimeStart"></li>
					<li><label>至 &nbsp;</label> <input type="text"
						name="searchTimeEnd" class="tlinput" id="searchTimeEnd"></li>
					<li><label>空间名称</label>
						<div class="vocation">
							<select class="tlselect" name="spaceSelect" id="searchSpace">
								<option value="0" selected="">请选择</option>
							</select>
						</div></li>
					<li><label>客户</label> <input name="parameter" type="text"
						class="scinput" placeholder="请输入客户名称" /></li>
					<li><label>&nbsp;</label><input name="btnSerch"
						onclick="search(1);" type="button" class="scbtn" value="搜索" /></li>
					<li><label>&nbsp;</label><input name="btnClean" id="btnClean"
						type="button" class="clbtn" value="清空" /></li>
					<li><label>&nbsp;</label><input name="btnSerch"
						data-backdrop="static" data-toggle="modal" data-target="#addModal"
						type="button" class="scbtn" value="新增" /></li>
				</ul>
			</div>
			<div id="usual1" class="usual">
				<div id="tab2" class="tabson">
					<table class="tablelist">
						<thead>
							<tr>
								<th>订单编号</th>
								<th>所在空间</th>
								<th>客户</th>
								<th>订单名称</th>
								<th>订单金额</th>
								<th>录入人</th>
								<th>创建时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody id="orderTable">
						</tbody>
					</table>
					<div class="pagin">
						<div class="message">
							共<i id="totalRow" class="blue">0&nbsp;</i>条记录，每页<i id="pageSize"
								class="blue">0&nbsp;</i>条记录，当前显示第&nbsp;<i id="currentPage"
								class="blue">1&nbsp;</i>页
						</div>
						<ul class="paginList">
							<li class="paginItem"><a href="javascript:;"><span
									class="pagepre"></span></a></li>
							<li class="paginItem current"><a href="javascript:;">1</a></li>
							<li class="paginItem"><a href="javascript:;"><span
									class="pagenxt"></span></a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>

	</div>
	<style>
.leftMenuTitle {
	background: url("./images/lefttop.gif") no-repeat;
	background-size: 4px 22px;
	background-position: 1px 7px;
	padding-left: 12px;
}

.modal-body .table td {
	border: 0px;
}
</style>
	<div class="modal fade" id="addModal" tabindex="-1" role="dialog"
		aria-labelledby="addModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="myModalLabel">新增订单</h4>
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
				</div>
				<div class="modal-body">
					<div class="leftMenuTitle formtitle">
						<span id="infoTitle">客户信息</span>
					</div>
					<table class="table">
						<tbody>
							<tr name="No1">
								<td colspan=2><font color="red">*</font>客户名称: <select
									class="tlselect" style="width: 300px" name="orderSelect"
									id="y_orderusername">
										<option value="0" selected="">请选择</option>
								</select></td>
							</tr>
							<tr name="No1">
								<td colspan=2 style="text-align: center;">
									<button type="button" id="btn-progress" class="btn btn-primary">下一步</button>
									<button type="button" class="btn btn-default"
										data-dismiss="modal">取消</button>
								</td>
							</tr>
							<tr name="No2">
								<td><font color="red">*</font>订单类型:<select class="tlselect"
									name="typeSelect" id="y_type">
										<option>请选择</option>
										<option value="即时订单" selected>即时订单</option>
								</select></td>
								<td><font color="red">*</font>订单名称:<input type="text"
									name="utitle" class="tlinput" id="y_ordername"
									placeholder="请输入订单名称" /></td>
							</tr>
							<tr name="No2">
								<td><font color="red">*</font>订单金额:&nbsp<input type="text"
									name="utitle" class="tlinput" id="y_ordermoney" onblur="checkPrice(this)"  onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" 
									placeholder="请输入订单金额" /></td>
								<td><font color="red">*</font>订单日期:<input type="text"
									name="utitle" class="tlinput" id="y_ordertime"
									placeholder="订单日期" /></td>
							</tr>
							<tr name="No2">
								<td colspan=2>订单备注:<textarea style="width: 420px"
										id='y_remark' message='请输入备注' formParameter="client"
										placeholder="请输入备注" cols="" rows="" class="langtext"></textarea></td>
							</tr>
							<tr name="No2">
								<td colspan=2 style="text-align: center;"><button
										type="button" id="btn-save" class="btn btn-primary">确定</button>
									<button type="button" class="btn btn-default"
										data-dismiss="modal">取消</button></td>
							</tr>


						</tbody>
					</table>
				</div>
				<div class="modal-footer" style="text-align: center; display: block">


				</div>
			</div>
		</div>
	</div>
	<div class="modal fade" id="ViewModal" tabindex="-1" role="dialog"
		aria-labelledby="ViewModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="myModalLabel">临时订单详情</h4>
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
				</div>
				<div class="modal-body">
					<div class="leftMenuTitle formtitle">
						<span id="infoTitle">订单详情</span>
					</div>
					<table class="table">
						<tbody id="detaillist"></tbody>
					</table>
				</div>
				<div class="modal-footer" style="text-align: center; display: block">
					<button type="button" class="btn btn-default" data-dismiss="modal">确定</button>

				</div>
			</div>
		</div>
	</div>
	<script>
		$(function() {

			$("#addModal").on("hidden.bs.modal", function() {
				$("#y_orderusername").val("");
				$("#y_ordername").val("");
				$("#y_ordermoney").val("");
				$("#y_ordertime").val("");
				$("#y_remark").val("");
				$(".table tr[name='No1']").show();
				$(".table tr[name='No2']").hide();
				$("#infoTitle").text('新建订单');
			});
			var curDate = new Date();
			var curDate2 = new Date()
			laydate.render({
				elem : '#y_ordertime',
				value : curDate,
				type : 'date'

			});
			laydate.render({
				elem : '#searchTimeStart',
				value : new Date(),
				type : 'date'
			});
			laydate.render({
				elem : '#searchTimeEnd',
				value : new Date(),
				type : 'date'
			});

			search(1);

		})
	</script>

</body>
</html>